.drag-demo {
    header {
        text-align: center;
        padding: 30px 0;
    }

    header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: #2c3e50;
    }

    header p {
        font-size: 1.2rem;
        color: #7f8c8d;
    }

    .controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 15px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    button {
        padding: 10px 20px;
        font-size: 1rem;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    button:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
    }

    .drag-info {
        padding: 8px 15px;
        background-color: #e74c3c;
        color: white;
        border-radius: 5px;
        font-weight: bold;
    }

    .grid-layout {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .grid-item {
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .grid-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .grid-item.dragging {
        opacity: 0.5;
        transform: scale(0.95);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .item-content {
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    .item-id {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .item-text {
        font-size: 1.2rem;
    }

    .instructions {
        background-color: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .instructions h3 {
        margin-bottom: 15px;
        color: #2c3e50;
    }

    .instructions ul {
        padding-left: 20px;
    }

    .instructions li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    @media (max-width: 768px) {
        .grid-layout {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }

        header h1 {
            font-size: 2rem;
        }

        .controls {
            flex-direction: column;
            gap: 15px;
        }
    }
}